"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require("babel-runtime/helpers/createClass");

var _createClass3 = _interopRequireDefault(_createClass2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Arr = function () {
  function Arr() {
    (0, _classCallCheck3["default"])(this, Arr);
  }

  (0, _createClass3["default"])(Arr, null, [{
    key: "inArray",

    /**
     *
     * @param value
     * @param {Array} arr
     * @returns {boolean}
     */
    value: function inArray(value, arr) {
      for (var i = 0; i < arr.length; i++) {
        if (value === arr[i]) {
          return true;
        }
      }
      return false;
    }
  }]);
  return Arr;
}();

exports["default"] = Arr;
module.exports = exports['default'];